package com.fd.wpx.manager.web.controllers;

import com.fd.wpx.article.service.ArticleCategoryService;
import com.fd.wpx.blog.pojo.ArticleCategory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 文章分类管理控制器
 */
@Controller
public class ArticleCategoryController {
//    @Autowired
    public ArticleCategoryService service;
    @RequestMapping("/article/category/{id}")
    @ResponseBody
    public ArticleCategory getArticleCategory(
            @PathVariable(value="id")Integer key) {
        ArticleCategory articlecategory = service.findArticleCategoryById(key);
        return articlecategory;

    }
}
